package com.sgroup.studycountry.infrastructure.exception;

/**
 * @author umi
 * @date 2021/9/22 16:55
 */
public class EntityNotFoundException extends RuntimeException {

    private static final String massageFormat = "not found %s entity by %s %s";

    public EntityNotFoundException(Class<?> entityClass, Object o) {
        super(String.format(massageFormat, entityClass.getSimpleName(), o.getClass().getSimpleName(), o.toString()));
    }
}
